package post

import (
	"mldong/api/base"

	"github.com/gogf/gf/v2/frame/g"
)

type SaveReq struct {
	g.Meta `path:"/sys/post/save" tags:"岗位管理" method:"post" summary:"添加岗位"`
	PostParam
}
type UpdateReq struct {
	g.Meta `path:"/sys/post/update" tags:"岗位管理" method:"post" summary:"修改岗位"`
	PostParam
}
type DetailReq struct {
	g.Meta `path:"/sys/post/detail" tags:"岗位管理" method:"post" summary:"岗位详情"`
	ID     string `json:"id" dc:"岗位ID" v:"required#请输入岗位ID"`
}

type DetailRes struct {
	base.CommonResult
	Data PostVO `json:"data" dc:"岗位信息"`
}
type RemoveReq struct {
	g.Meta `path:"/sys/post/remove" tags:"岗位管理" method:"post" summary:"删除岗位"`
	Ids    []string `json:"ids" dc:"岗位ID集合" v:"required#请输入岗位ID集合|min-length:1"`
}
type PageReq struct {
	g.Meta `path:"/sys/post/page" tags:"岗位管理" method:"post" summary:"岗位分页查询"`
	base.PageParam
}
type PostPageVO struct {
	base.PageVO
	Rows []PostVO `json:"rows" dc:"数据列表"`
}
type PageRes struct {
	base.CommonResult
	Data PostPageVO `json:"data" dc:"岗位分页返回实体"`
}
